package sis.threadtest;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-08-01 23:06
 * @notify
 * @version 1.0
 */

public class ReentrantDome2 {
    public static void main(String orgs[]) {
        final MyService2 start = new MyService2();
        new Thread(new Runnable() {
            public void run() {
                start.serviceA();

            }
        }).start();


        new Thread(new Runnable() {
            public void run() {
                start.serviceB();

            }
        }).start();


    }
}
